package com.example.b_308.medical.view;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

<<<<<<< HEAD:app/src/main/java/com/example/b_308/medical/view/Open_inquiry_serviceActivity.java
import com.example.b_308.medical.R;
=======
import com.example.b_308.medical.controller.AccountController;
import com.example.b_308.medical.controller.UserController;
import com.example.b_308.medical.view.account.IAccountView;
>>>>>>> origin/master:app/src/main/java/com/example/b_308/medical/Personal_centerActivity.java
import com.example.b_308.medical.view.base.BaseActivity;

/**
 * Created by B-308 on 2017/11/22.
 */
<<<<<<< HEAD:app/src/main/java/com/example/b_308/medical/view/Open_inquiry_serviceActivity.java
public class Open_inquiry_serviceActivity extends BaseActivity {

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_open_inquiry_service);
=======
public class Personal_centerActivity extends BaseActivity implements View.OnClickListener,IAccountView {

    Button but_setting2,but_go_ahead1,but_go_ahead2,but_go_ahead3,but_go_ahead4;
    AccountController accountController;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_personal_center);
        getTitleBar().setVisibility(View.GONE);
        initView();
        initDate();
        initListener();
    }

    private void initListener() {
        but_setting2.setOnClickListener(this);
        but_go_ahead1.setOnClickListener(this);
        but_go_ahead2.setOnClickListener(this);
        but_go_ahead3.setOnClickListener(this);
        but_go_ahead4.setOnClickListener(this);
    }

    private void initDate() {
        accountController = new AccountController(this);
    }


    private void initView() {
        but_setting2= findView(R.id.but_setting2);
        but_go_ahead1= findView(R.id.but_go_ahead1);
        but_go_ahead2= findView(R.id.but_go_ahead2);
        but_go_ahead3= findView(R.id.but_go_ahead3);
        but_go_ahead4= findView(R.id.but_go_ahead4);
    }

    @Override
    public void getAccountSuccess() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.but_setting2:
                tent2(Set_upActivity.class);
                break;
            case R.id.but_go_ahead1:
                tent2(Account_informationActivity.class);
                break;
            case R.id.but_go_ahead2:
                tent2(My_reservation_for_registrationActivity.class);
                break;
            case R.id.but_go_ahead3:
                tent2(My_interrogationActivity.class);
                break;
            case R.id.but_go_ahead4:
                tent2(Patient_evaluationActivity.class);
                break;
        }
>>>>>>> origin/master:app/src/main/java/com/example/b_308/medical/Personal_centerActivity.java
    }
}
